
// 评论 数据模型 
// @author: fangjiehua	2014.9.11


var mongoose 	= require('mongoose');
var Schema 		= mongoose.Schema;
var ObjectId 	= Schema.Types.ObjectId;

var GroupSchema = new Schema({

	//
	groupId 	: { type: String  },

	groupName 	: { type: String },

	createUserId 	: { type: String },

	memberCount	: { type: Number},

	memberList : [{ type: String }]
});

var group = mongoose.model('Group', GroupSchema);

//GroupSchema.pre('save', function (next){
//	var self = this;
//	if (self._id) {
//		next();
//	}else{
//		Counter.getIdOf('comment', function (err, id) {
//			self._id = id;
//			next(err);
//		});
//	}
//});

exports.Group = group;


